package cn.whpu.springboot.mapper;

import cn.whpu.springboot.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper//这表明这是一个mybatis的mapper类
@Repository
public interface UserMapper {

    @Select("select * from user")
    List<User> queryUserList();

}
